/*
 * @Author: wilson
 * @Date: 2022-10-29 17:57:08
 * @LastEditors: wilson
 * @LastEditTime: 2022-10-29 17:59:42
 * @FilePath: /IPRecorder/main.go
 * @Description:
 */
package main

import (
	_ "iprecorder/routers"

	"github.com/astaxie/beego"
)

func main() {
	if beego.BConfig.RunMode == "dev" {
		beego.BConfig.WebConfig.DirectoryIndex = true
		beego.BConfig.WebConfig.StaticDir["/swagger"] = "swagger"
	}
	beego.Run()
}
